package com.financial.business.yspay.connector;

import com.financial.business.yspay.utils.apiresult.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author WANGNING
 * @Email wyn20140226@aliyun.com
 * @Description //银盛查询服务feign接口
 * @Date 2019/11/19 9:44
 */
@Service
@FeignClient(name = "financial-service-yspay")
public interface YsQueryFeign {

    /**
     * 银盛余额查询
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ysQuery/balance", method = RequestMethod.POST)
    ApiResult balance(@RequestBody String requestParam);

    /**
     * 银盛分账查询
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ysQuery/split", method = RequestMethod.POST)
    ApiResult split(@RequestBody String requestParam);

    /**
     * 银盛支付查询
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ysQuery/pay", method = RequestMethod.POST)
    ApiResult pay(@RequestBody String requestParam);

    /**
     * 银盛报备查询
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ysQuery/report", method = RequestMethod.POST)
    ApiResult report(@RequestBody String requestParam);

    /**
     * 银盛代付查询
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ysQuery/payment", method = RequestMethod.POST)
    ApiResult payment(@RequestBody String requestParam);

    /**
     * 银盛提现查询
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ysQuery/withdrawal", method = RequestMethod.POST)
    ApiResult withdrawal(@RequestBody String requestParam);

    /**
     * 银盛退款查询
     *
     * @param requestParam
     * @return
     */
    @RequestMapping(value = "/ysQuery/refund", method = RequestMethod.POST)
    ApiResult refund(@RequestBody String requestParam);
}
